package com.eight.teacher.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eight.common.pojo.TbMember;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * @program: qy8-education
 * @description:
 * @author: 平家祥
 * @create: 2023-06-03 10:19
 **/
@Mapper
public interface TbMemberDao extends BaseMapper<TbMember> {
    @Update(value = "update tb_member set is_type = 1 where id = #{teacherId}")
    Integer updateByIdPass(String teacherId);
    @Update(value = "update tb_member set is_type = 0 where id = #{teacherId}")
    Integer updateByIdNoPass(String teacherId);
}
